<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%@ page language="java" 
    pageEncoding="utf-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>jsp中的声明</title>
</head>
<body>
<%!
    double pi=3.14159;
    
    boolean isOu(int k){
    	return k%2==0;
    }
 %>
	<h1>
	 	圆周率是<%=pi%>
	</h1>
	<%
	    int i=100;
	    boolean b=isOu(i);
	    out.print(i+"是偶数吗？"+b);
	 %>
</body>
</html>